/*! \file AppFactory.cpp
 *	\brief
 *
 *	created:	2010/03/11
 *	created:	11:3:2010   1:12
 *	filename: 	c:\src\tactics-engine\libs\app_unix\AppFactory.cpp
 *	file path:	c:\src\tactics-engine\libs\app_unix
 *	file base:	AppFactoryWin
 *	file ext:	cpp
 *	author:		Vitalii Trubchaninov
 *				venngraydog@gmail.com
 */

#include "app_unix/stdafx.h"
#include "app_unix/AppFactory.h"

#include "app_unix/Window.h"
#include "app_unix/WindowImpl.h"

namespace tt{
namespace app_unix{

AppFactory::AppFactory(void* hInstance)
: m_hInstance(hInstance)
{

}

AppFactory::~AppFactory()
{

}

SharedPtr<app::Window> AppFactory::createWindow()
{
	ScopedPtr<app::WindowImpl> windowImpl(new WindowImpl(m_hInstance));
	return doCreateWindow<Window, app::WindowImpl>( windowImpl );
}

} //namespace app_unix
} //namespace tt

